From d6541015645e806f78a48dd5fc628b15bc9ff0b8 Mon Sep 17 00:00:00 2001 From: Roger Pau Monne Date: Fri, 25 Jan 2013 08:54:18 +0000 Subject: [PATCH] libxl: libxl__prepare_ao_device should reset num_exec MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit num_exec was not cleared when calling libxl__prepare_ao_device. Signed-off-by: Roger Pau Monné Acked-by: Ian Campbell Committed-by: Ian Campbell --- tools/libxl/libxl_device.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/libxl/libxl_device.c b/tools/libxl/libxl_device.c index 51dd06e483..58d3f35dfa 100644 --- a/tools/libxl/libxl_device.c +++ b/tools/libxl/libxl_device.c @@ -409,6 +409,7 @@ void libxl__prepare_ao_device(libxl__ao *ao, libxl__ao_device *aodev) aodev->ao = ao; aodev->rc = 0; aodev->dev = NULL; + aodev->num_exec = 0; /* Initialize timer for QEMU Bodge and hotplug execution */ libxl__ev_time_init(&aodev->timeout); aodev->active = 1; -- 2.30.2